/**
 * 站内信相关的请求
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';

class ApiChat {

  messageList(parms){
    return ApiBase.send(Urls.URL_USER_MESSAGE_LIST, parms);
  }
  sendMessage(parms){
    return ApiBase.send(Urls.URL_USER_SEND_MESSAGE, parms);
  }
  messageDetail(parms){
    return ApiBase.send(Urls.URL_USER_MESSAGE_DETAIL, parms);
  }
  msgAccountList(parms){
    return ApiBase.send(Urls.URL_USER_MSG_ACCOUNT_LIST, parms);
  }
  chatMessageList(parms){
    return ApiBase.send(Urls.URL_USER_CHAT_MSG_LIST, parms);
  }
  chatMessageDetail(parms){
    return ApiBase.send(Urls.URL_USER_CHAT_MSG_DETAIL, parms);
  }
  chatSendMessage(parms){
    return ApiBase.send(Urls.URL_USER_SEND_MSG, parms);
  }
  getMessageUserInfo(parms){
    return ApiBase.send(Urls.URL_GET_MSG_USER, parms);
  }
  readMessage(parms){
    return ApiBase.send(Urls.URL_READ_MSG, parms);
  }
  recallMessage(parms){
    return ApiBase.send(Urls.URL_RECALL_MSG, parms);
  }
  assignToEmployee(parms){
    return ApiBase.send(Urls.URL_ASSIGN_EMPLOYEE, parms);
  }
  batchAssignToEmployee(parms){
    return ApiBase.send(Urls.URL_BATCH_ASSIGN_EMPLOYEE, parms);
  }
  changeMessageStatus(parms){
    return ApiBase.send(Urls.URL_CHANGE_STATUS, parms);
  }
  deleteMessagePic(params){
    return ApiBase.send(Urls.URL_MSG_DELETE_PIC, params);
  }
  queryMessageStatus(params) {
    return ApiBase.send(Urls.URL_MSG_STATUS, params);
  }
  updateStatusTags(params) {
    return ApiBase.send(Urls.URL_MSG_STATUS_UPDATE_TAGS, params);
  }
  updateStatusNote(params) {
    return ApiBase.send(Urls.URL_MSG_STATUS_UPDATE_NOTE, params);
  }

  endChat(params) {
    return ApiBase.send(Urls.URL_MSG_STATUS_END_CHAT, params);
  }

  saveUserContactEmail(params) {
    return ApiBase.send(Urls.URL_SAVE_USER_CONTACT_EMAIL, params);
  }

  getUserContactEmail(params) {
    return ApiBase.send(Urls.URL_GET_USER_CONTACT_EMAIL, params);
  }

  queryCustomerServiceList(params) {
    return ApiBase.send(Urls.URL_QUERY_CUSTOMER_SERVICE_LIST, params);
  }

  saveCustomerService(params) {
    return ApiBase.send(Urls.URL_SAVE_CUSTOMER_SERVICE, params);
  }

  updateCustomerService(params) {
    return ApiBase.send(Urls.URL_UPDATE_CUSTOMER_SERVICE, params);
  }

  getSelfCustomerService() {
    return ApiBase.send(Urls.URL_GET_SELF_CUSTOMER_SERVICE);
  }

  getCustomerService(params) {
    return ApiBase.send(Urls.URL_GET_CUSTOMER_SERVICE, params);
  }

  onlineSelfCustomerService() {
    return ApiBase.send(Urls.URL_ONLINE_SELF_CUSTOMER_SERVICE);
  }

  offlineSelfCustomerService() {
    return ApiBase.send(Urls.URL_OFFLINE_SELF_CUSTOMER_SERVICE);
  }

  onlineCustomerService(params) {
    return ApiBase.send(Urls.URL_ONLINE_CUSTOMER_SERVICE, params);
  }

  offlineCustomerService(params) {
    return ApiBase.send(Urls.URL_OFFLINE_CUSTOMER_SERVICE, params);
  }

  deleteCustomerService(params) {
    return ApiBase.send(Urls.URL_DELETE_CUSTOMER_SERVICE, params);
  }

  queryMessageStatusList(params) {
    return ApiBase.send(Urls.URL_QUERY_CHAT_STATUS_LIST, params);
  }
}
export  default  ApiChat
